package cn.zysheep.function;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: GrantTypeController
 * @Author: lyw
 * @Date: 2023/9/5 9:42
 */
@RestController
public class GrantTypeController {

    @Autowired
    private QueryGrantTypeService queryGrantTypeService;

    @GetMapping("/grantType/{resourceType}/{resourceId}")
    public String test(@PathVariable String resourceType, @PathVariable String resourceId){
        return queryGrantTypeService.getResult(resourceType, resourceId);
    }
}